﻿using SqlSugar;
using System.Data;
using WorkLogSystem.Common;
using WorkLogSystem.Entity;

namespace WorkLogSystem.Service
{
    public class UserService : BaseService<User>
    {
        public UserService(ISqlSugarClient db, IHttpContextAccessor httpContextAccessor) : base(db, httpContextAccessor)
        {
        }

        public User GetUserByName(string cUserName)
        {
            return _db.Queryable<User>().First(u => u.cUserName == cUserName);
        }
    }
}
